<template>
  <van-nav-bar title="添加地址"  left-arrow @click-left=$router.go(-1) />
  <van-address-edit :area-list="areaList" show-set-default show-search-result
    :area-columns-placeholder="['请选择', '请选择', '请选择']" @save="onSave($event)" />
</template>

<script setup lang="ts">
import { areaList } from '@vant/area-data'
import { AddAress } from '@/Hooks/addadress'

const { toSave } = AddAress()


const onSave = async (e: any) => {//保存
  await toSave(e)
}




</script>

<style lang="scss" scoped></style>